package com.niiwoo.civet.mobile.vo.request.databackflow;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * 天称通讯录回流参数
 * @author xueyuke
 * @date 2017-12-01
 */
@Setter
@Getter
@ApiModel
@AllArgsConstructor
public class AddressListBackFlowRequestVO {
    @ApiModelProperty(value = "用户id", required = true)
    private String userId;

    @ApiModelProperty(value = "设备id", required = true)
    private String deviceId;

    @ApiModelProperty(value = "用户设备操作系统", required = false)
    private String os;

    @ApiModelProperty(value = "是否root或越狱", notes = "0-否 1-是", required = false)
    private Integer equipmentStatus;

    @ApiModelProperty(value = "通讯录列表", required = true)
    private List<Address> addressList;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    @Getter
    @Setter
    @ApiModel("通讯录详情")
    @AllArgsConstructor
    public static class Address {
        @ApiModelProperty(value="手机号码", required = true)
        private String mobile;
        @ApiModelProperty(value="联系人姓名", required = true)
        private String remark;

        @Override
        public String toString() {
            return JSON.toJSONString(this);
        }
    }
}
